<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 400px;
            height: 400px;
            border: 1px solid red;
            margin: auto;
            position: relative;
        }
        .son {
            width: 100px;
            height: 100px;
            background-color: aqua;
            animation: dh 3s infinite;
            position: absolute;
            top: 0;
            left: 0;
        }
        @keyframes dh {
            0%{
                width: 50px;
                height: 50px;
                background-color: blueviolet;
                border-radius: 50%;
                left: 0;
                top: 0;
                transform: rotate(0deg);
            }
            25%{
                width: 50px;
                height: 50px;
                background-color: chartreuse;
                /* border-radius: 50px; */
                left: 350px;
                top: 0;
            }
            50%{
                width: 50px;
                height: 50px;
                background-color: darkorange;
                /* border-radius: 50px; */
                left: 350px;
                top: 350px;
            }
            75%{
                width: 50px;
                height: 50px;
                background-color: firebrick;
                /* border-radius: 50px; */
                left: 0;
                top: 350px;
            }
            100%{
                width: 50px;
                height: 50px;
                background-color: gold;
                border-radius: 50px;
                left: 0;
                top: 0;
                transform: rotate(1440deg);
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="son"></div>
    </div>
</body>
</html>